// by Xeno
private ["_vehicle", "_poss"];
#include "x_setup.sqf"

x_sm_pos = [[1617.2891,2612.9565,0], [1750.2891,2750.9565,0]]; // index: 11,   Lighthouse on Isle Skalisty
x_sm_type = "normal"; // "convoy"

#ifdef __SMMISSIONS_MARKER__
if (true) exitWith {};
#endif

if (X_Client) then {
	d_current_mission_text = "There is a lighthouse near Winsen. Enemy ships use it to navigate the river. Destroy it.";
	d_current_mission_resolved_text = "Good job. The lighthouse is destroyed.";
};

if (isServer) then {
	__PossAndOther
	_vehicle = "Land_majak2" createvehicle (_poss);
#ifndef __TT__
	[_vehicle] execFSM "fsms\XCheckSMHardTarget.fsm";
#else
	[_vehicle] execFSM "fsms\XCheckSMHardTargetTT.fsm";
#endif
	sleep 2.022;
	["specops", 1, "basic", 5, _poss,100,false] spawn XCreateInf;
	sleep 2.123;
	["shilka", 0, "bmp", 0, "tank", 0, _poss,1,110,false] spawn XCreateArmor;
	__AddToExtraVec(_vehicle)
};